Apple Pay

  • PKPaymentRequest additions for using Apple Pay with Square.

    See more

    Declaration

    Objective-C

    @interface PKPaymentRequest (Square)
  • Lets the application retrieve a card nonce using a PKPayment instance obtained from Apple Pay.

    See more

    Declaration

    Objective-C

    @interface SQIPApplePayNonceRequest : NSObject
  • A completion handler that handles the result of an Apple Pay nonce request.

    See

    SQIPApplePayNonceRequestError for possible error types.

    Declaration

    Objective-C

    typedef void (^SQIPApplePayNonceRequestCompletionHandler)(
        SQIPCardDetails *_Nullable, NSError *_Nullable)

    Parameters

    cardDetails

    Contains details about the card, including the nonce. nil when the request fails.

    error

    An error with domain SQIPApplePayNonceRequestErrorDomain when the nonce request fails; otherwise, nil.

  • The domain for errors that occur when requesting a card nonce using Apple Pay.

    Declaration

    Objective-C

    extern NSString *const _Nonnull SQIPApplePayNonceRequestErrorDomain
  • Possible error codes that can be returned as a result of attempting to create a card nonce.

    See more

    Declaration

    Objective-C

    enum SQIPApplePayNonceRequestError : NSInteger {}